package com.bulletelc.apollopre.module.deal.pay;

import com.bulletelc.apollopre.entity.PayTypeBean;
import com.bulletelc.apollopre.entity.PrepayIdDataBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

import java.util.List;

/**
 * author: lhl
 * date  : 2018/01/21
 * desc  : TODO
 */

public interface PayCenterContract {

    interface View extends IView{
        void onSuccessPayType(List<PayTypeBean> payTypeBeans);
        void onFailPayType(String fail);
        void onErrorPayType(String error);

        void onSuccessPrepayId(PrepayIdDataBean prepayIdDataBean);
        void onFailPrepayId(String fail);
        void onErrorPrepayId(String error);

    }

    interface Presenter extends IPresenter<View> {

        /**
         * 获取支付方式列表
         */
        void getPayType();

        /**
         * 获取预付单号
         */
        void getPrepayId(String json,String token);

    }

}
